/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.workflowDesign.service;

import com.koron.workflow.common.bean.StaffBean;
import org.koron.ebs.mybatis.SessionFactory;
import org.swan.bean.MessageBean;

/**
 * @author qingfeng
 * @description: TODO
 * @date 2020/4/8 11:54
 */
public interface WorkflowDesignService {
	
	/**
	 * 流程发布
	 * @param id
	 * @return
	 */
	MessageBean<?> deploy(SessionFactory factory, String id);

    /**
     * 根据流程id获取svg内容
     * @param factory
     * @param processId
     * @return
     */
    String getSvg(SessionFactory factory,String processId);

    /**
     * 提交流程模板
     * @param factory
     * @param svgString
     * @param design
     * @param workFlow
     * @param processId
     * @return
     */
    MessageBean<String> workFlowSubmit(SessionFactory factory, StaffBean user, String svgString, String design, String workFlow, String processId);

}
